package com.example.webserver.mapper;

import com.example.webserver.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;


@Mapper
public interface Usermapper {
    User findUserbyName(String username);
    int insert(User user);
    void update(User user);
    void updateAvatar(@Param("user_pic")String user_pic, @Param("id")int id);
    void updatePsw(@Param("password")String password,@Param("id") int id);
}
